package net.sxnic.ugr.resource.action;

import net.sxnic.comm.utils.PropertyUtil;
import net.sxinfo.core.util.WebUtils;
import net.sxnic.ugr.resource.Resource;

/**
 * 
 * Introduction：
 * @author 张国业
 * create date : 20130411
 */
@SuppressWarnings("serial")
public class Browse extends ResourceAction {

	public String execute() throws Exception {
		 try {						
		    checkRoles(Resource.SYSTEM_ADMIN);
	        int pageNumber = WebUtils.getPageNumber(request);
	        int pageSize = PropertyUtil.findTableSize("firstbrowse.tabsize");
			
			 
	        setResources(resourceManager.getPage (pageNumber, pageSize,"id",true));
				
			} catch (Exception e) {
				e.printStackTrace();
			}
    
        return SUCCESS;
    }
	 
    
}